home *** CD-ROM | disk | FTP | other *** search
- Path: news.Stanford.EDU!not-for-mail
- From: bsingh@leland.Stanford.EDU (Balraj Singh)
- Newsgroups: comp.lang.c++
- Subject: mixed language prog question
- Date: 28 Feb 1996 12:55:38 -0800
- Organization: Stanford University, CA 94305, USA
- Message-ID: <4h2fga$f51@elaine15.Stanford.EDU>
- NNTP-Posting-Host: elaine15.stanford.edu
-
-
- I have a mixed language program with C and C++ and the main() is
- in C then how do I compile/link the program? When I try to link
- it .. I get the following message ..
-
- CC: error: could not find _main symbol. You must use CC to link. If your main
- is not in C++, a call to _main() is required. (740)
-
- I am using CC to link but where to I put the call to _main() and do I need
- the extern "C" {void main();}; def? Any suggestions?
-
- Please reply via mail as I dont follow this group regularly! Thanks.
-
- 'raj
- --
- Balraj Singh, bsingh@leland.stanford.edu
- Stanford University, Stanford CA 94305
-